package com.ztom.daily.n2022.m4;

/**
 * 最富有客户的资产总量
 * <p>
 * https://leetcode-cn.com/problems/richest-customer-wealth/
 *
 * @author ZhangTao
 */
public class Day14MaximumWealth {

    public int maximumWealth(int[][] accounts) {
        int max = 0;
        for (int[] account : accounts) {
            int cur = 0;
            for (int i : account) {
                cur += i;
            }
            max = Math.max(max, cur);
        }
        return max;
    }
}
